<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <title>分页界面</title>
    <link rel="stylesheet" type="text/css" href="${s.base}/lib/layui/css/layui.css"/>
    <link rel="stylesheet" type="text/css" href="${s.base}/css/base/index.css"/>
    <link rel="stylesheet" type="text/css" href="${s.base}/css/base/theme/theme.css"/>
</head>
<body>
<div class="wrap-container clearfix">
    <div class="column-content-detail">
        <form class="layui-form">
            <div class="search-cont clearfix" id="tool">
                <div class="operation-btn-cont">
                    <div class="operright cyt-retract-close hideMenu"> 收起筛选<i class="iconfont">&#xe658;</i></div>
                    <div class="operright cyt-retract-open showMenu" style="display: none;"> 展开筛选<i class="iconfont">&#xe936;</i></div>
                    <!--button开始-->
                    <!--button结束-->
                    <div class="triangle-bottom"></div>
                    <div class="triangle-top"></div>
                </div>
                <div class="search-details">
                    <div class="layui-form-item marb5">
                        <!--search开始-->
                        <div class="layui-inline">
                            <label class="layui-form-label">员工姓名：</label>
                            <div class="layui-input-inline">
                                <input type="text" name="staffName" placeholder="请输入员工姓名" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">支付状态：</label>
                            <div class="layui-input-inline">
                                <select name="payStatus" id="payStatus">
                                </select>
                            </div>
                        </div>
                        <!--search结束-->
                        <div class="layui-inline marl8">
                            <button class="layui-btn layui-btn-normal" type="button" lay-submit="" lay-filter="seacherBtn">搜索</button>
                            <button class="layui-btn layui-btn-normal" type="reset">重置</button>
                        </div>
                    </div>
                </div>
            </div>
        </form>
        <div class="layui-form" id="table-list">
            <table id="entityList" lay-filter="entityList" class="cy-list-table"></table>
        </div>
    </div>
</div>
<!--操作-->
<script src="${s.base}/lib/layui/layui.js" type="text/javascript" charset="utf-8"></script>
<script src="${s.base}/js/common.js" type="text/javascript" charset="utf-8"></script>
<script>
    var applyId='${applyId}';
    layui.use(['page'], function () {
        var page = layui.page;

        page.initDict('pay_status', function (dictData) {
            page.showDict($("#payStatus"), page.aceeptDictContentList(dictData, 'pay_status'), "全部");
            //获取分页数据
            var url = "/reward/rewardrecord/page?applyId="+applyId;
            var cols = [
                {type: 'checkbox', fixed: 'left'},
                {field: 'staffName', title: '员工姓名', align: 'center'},
                {field: 'money', title: '打赏金额', align: 'center'},
                {field: 'stars', title: '评价星级', align: 'center'},
                {field: 'tagName', title: '标签', align: 'center'},
                {field: 'comments', title: '评价', align: 'center'},
                {
                    field: 'payStatus', title: '支付状态', align: 'center', templet: function (d) {
                        return page.aceeptDictContentName(dictData, 'pay_status', d.payStatus);
                    }
                },
                {field: 'nickName', title: '打赏人', align: 'center'},
                {
                    field: 'createTime', title: '打赏时间', align: 'center', templet: function (d) {
                        return new Date(d.createTime).Format("yyyy-MM-dd hh:mm:ss");
                    }
                }
            ];
            page.initDate(cols, url);
        });
    });
</script>
</body>
</html>